<?php
$domain = $_REQUEST['domain'];
$whois = dns_get_record($domain);
if(count($whois) > 1)
{
	echo 'Đã đăng ký';
}
else 
{
	echo 'chua dang ky';
}
$whois = dns_get_record($domain);
print_r($whois);
/* 
for($i=count($whois); $i>=0; $i–)
{
echo '';
echo $whois[$i]['target'];
echo '<tr>';
} */